<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Orth® CMS</title>
        <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
        <!-- Bootstrap 3.3.4 -->
        <link href="/admin_lte/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <!-- FontAwesome 4.3.0 -->
        <link href="/lib/font-awesome.min.css" rel="stylesheet" type="text/css" />
        <!-- Theme style -->
        <link href="/admin_lte/dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
        <!-- AdminLTE Skins. Choose a skin from the css/skins
        folder instead of downloading all of them to reduce the load. -->
        <link href="/admin_lte/dist/css/skins/_all-skins.min.css" rel="stylesheet" type="text/css" />
        <!-- iCheck -->
        <link href="/admin_lte/plugins/iCheck/flat/blue.css" rel="stylesheet" type="text/css" />
        <link href="/styles/main.css" rel="stylesheet" type="text/css" />
        <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
        <![endif]-->
        <script type="text/javascript">
            var _config = {
                "parent_purview":"<%=headers.parent_purview%>",
                "purview":"<%=headers.purview%>"
            };
    var _usergroup = <%-JSON.stringify(user.usergroup)%>;
        </script>
        <!-- jQuery 2.1.4 -->
        <script src="/admin_lte/plugins/jQuery/jQuery-2.1.4.min.js"></script>
        <!-- jQuery UI 1.11.2 -->
        <script src="/lib/jquery-ui.min.js" type="text/javascript"></script>
        <!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
        <script>
            $.widget.bridge('uibutton', $.ui.button);
        </script>
        <!-- Bootstrap 3.3.2 JS -->
        <script src="/admin_lte/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
        <!-- AdminLTE App -->
        <script src="/admin_lte/dist/js/app.min.js" type="text/javascript"></script>
        <script src="/js/main.js" type="text/javascript"></script>
    </head>
    <body class="skin-blue sidebar-mini">
        <div class="wrapper">
            <header class="main-header">
                <!-- Logo -->
                <a href="" class="logo">
                    <!-- mini logo for sidebar mini 50x50 pixels -->
                    <span class="logo-mini">CMS</span>
                    <!-- logo for regular state and mobile devices -->
                    <span class="logo-lg">Orth® CMS 站点管理</span>
                </a>
                <!-- Header Navbar: style can be found in header.less -->
                <nav class="navbar navbar-static-top" role="navigation">
                    <!-- Sidebar toggle button-->
                    <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                        <span class="sr-only">切换</span>
                    </a>
                    <div class="navbar-custom-menu">
                        <ul class="nav navbar-nav">

                            <li class="dropdown notifications-menu">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                    <i class="fa fa-bell-o"></i>
                                    <span class="label label-warning">0</span>
                                </a>
                                 <ul class="dropdown-menu">
                                    <li class="header">0条未读消息</li>
                                    <li>
                                        <ul class="menu">
                                            <li>
                                                <a href="#">
                                                    <i class="fa fa-warning text-yellow"></i> 暂时没有通知消息!
                                                </a>
                                            </li>
                                        </ul>
                                    </li>
                                    <!-- <li class="footer"><a href="#">查看全部</a></li> -->
                                </ul> 
                            </li>
                            
                            <!-- User Account: style can be found in dropdown.less -->
                            <li class="dropdown user user-menu">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                    <img src="/admin_lte/dist/img/user2-160x160.jpg" class="user-image" alt="User Image"/>
                                    <span class="hidden-xs"><%=user.username%></span>
                                </a>
                                <ul class="dropdown-menu">
                                    <!-- User image -->
                                    <li class="user-header">
                                        <img src="/admin_lte/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image" />
                                        <p>
                                            <%=user.email%>
                                        </p>
                                    </li>
                                    <!-- Menu Footer-->
                                    <li class="user-footer">
                                        <div class="pull-left">
                                            <a href="/admin/user/profile" class="btn btn-default btn-flat">修改资料</a>
                                        </div>
                                        <div class="pull-right">
                                            <a href="/admin/user/logout" class="btn btn-default btn-flat">退出系统</a>
                                        </div>
                                    </li>
                                </ul>
                            </li>
                            <li>
                                <a href="/" >查看站点</a>
                            </li>
                        </ul>
                    </div>
                </nav>
            </header>
            <!-- Left side column. contains the logo and sidebar -->
            <aside class="main-sidebar">
                <section class="sidebar">
                    <ul class="sidebar-menu">
                        <li class="header">主要功能</li>
                        <li class="treeview">
                            <a href="#" data-name="personal">
                                <i class="fa fa-dashboard"></i> <span>个人中心</span> <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a data-name="adminindex" href="/admin/main/index"><i class="fa fa-circle-o"></i> 后台首页</a></li>
                                <li><a data-name="propass" href="/admin/user/password"><i class="fa fa-circle-o text-aqua"></i> 修改密码</a></li>
                                <li><a data-name="profile" href="/admin/user/profile"><i class="fa fa-circle-o text-yellow"></i> 个人资料</a></li>
                            </ul>
                        </li>
                        <li class="treeview">
                            <a href="#" data-name="content">
                                <i class="fa fa-files-o"></i>
                                <span>内容管理</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a data-name="category" href="/admin/category"><i class="fa fa-circle-o"></i> 栏目管理</a></li>
                                <li><a data-name="article" href="/admin/article"><i class="fa fa-circle-o"></i> 文章管理</a></li>
                                <li><a data-name="product" href="/admin/product"><i class="fa fa-circle-o"></i> 医生管理</a></li>
                                <li><a data-name="ask" href="/admin/ask"><i class="fa fa-circle-o"></i> 问答管理</a></li>
                                <li><a data-name="down" href="/admin/down"><i class="fa fa-circle-o"></i> 下载管理</a></li>
                                <li><a data-name="hr" href="/admin/hr"><i class="fa fa-circle-o"></i> 招聘管理</a></li>
                                <li><a data-name="guestbook" href="/admin/guestbook"><i class="fa fa-circle-o"></i> 留言管理</a></li>
                            </ul>
                        </li>
                        <li>
                            <a href="#" data-name="seo">
                                <i class="fa fa-laptop"></i> <span>SEO 优化</span> <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a data-name="tags" href="/admin/tags"><i class="fa fa-circle-o"></i> 聚合标签</a></li>
                                <li><a data-name="htaccess" href="/admin/htaccess"><i class="fa fa-circle-o"></i> htaccess设置</a></li>
                                <li><a data-name="robots" href="/admin/robots"><i class="fa fa-circle-o"></i> Robots设置</a></li>
                            </ul>
                        </li>
                        <li class="treeview">
                            <a href="#" data-name="module">
                                <i class="fa fa-th"></i>
                                <span>模块管理</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a data-name="type" href="/admin/type"><i class="fa fa-circle-o"></i> 模块分类</a></li>
                                <li><a data-name="slide" href="/admin/slide"><i class="fa fa-circle-o"></i> 幻灯管理</a></li>
                                <li><a data-name="link" href="/admin/link"><i class="fa fa-circle-o"></i> 友情链接</a></li>
                                <li><a data-name="navigation" href="/admin/navigation"><i class="fa fa-circle-o"></i> 导航管理</a></li>
                                <li><a data-name="online" href="/admin/online"><i class="fa fa-circle-o"></i> 在线客服</a></li>
                                <li><a data-name="fragment" href="/admin/fragment"><i class="fa fa-circle-o"></i> 碎片管理</a></li>
                            </ul>
                        </li>
                        <li class="treeview">
                            <a href="#" data-name="system">
                                <i class="fa fa-folder"></i>
                                <span>系统管理</span>
                                <i class="fa fa-angle-left pull-right"></i>
                            </a>
                            <ul class="treeview-menu">
                                <li><a data-name="purview" href="/admin/purview"><i class="fa fa-circle-o"></i> 权限菜单 </a></li>
                                <li><a data-name="usergroup" href="/admin/usergroup"><i class="fa fa-circle-o"></i> 用户组</a></li>
                                <li><a data-name="user" href="/admin/user/list"><i class="fa fa-circle-o"></i> 用户管理</a></li>
                                <li><a data-name="config" href="/admin/config/"><i class="fa fa-circle-o"></i> 站点设置</a></li>
                                <!-- TODO 第二期工作 -->
<!--                            <li><a data-name="lang" href="/admin/language/"><i class="fa fa-circle-o"></i> 多语言管理</a></li>
                                <li><a data-name="database" href="/admin/db/"><i class="fa fa-circle-o"></i> 数据库管理</a></li>
                                <li><a data-name="template" href="/admin/tpl"><i class="fa fa-circle-o"></i> 模板文件</a></li>
                                <li><a data-name="clearcache" href="/admin/cache"><i class="fa fa-circle-o"></i> 清除缓存</a></li> -->
                            </ul>
                        </li>
                    </ul>
                </section>
            </aside>
            <!-- Content Wrapper. Contains page content -->
            <div class="content-wrapper">
                <!-- Content Header (Page header) -->
                <section class="content-header">
                    <h1>
                    <%=headers.title%>
                    <small><%=headers.description%> </small>
                    </h1>
                    <ol class="breadcrumb">
                        <%headers.breadcrumb.forEach(function(one){%>
                        <li><a href="<%-one.link%>"><i class="fa fa-dashboard"></i><%-one.name%></a></li>
                        <%})%>
                    </ol>
                </section>
                <section class="content">
                    <p class="login-box-msg">
                        <% if(flash && flash.succ){%>
                        <div class="alert alert-success  alert-dismissable">
                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                            <%=flash.succ%>
                        </div>
                        <%}%>
                        <% if(flash && flash.error){%>
                        <div class="alert alert-info  alert-dismissable">
                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                            <%=flash.error%>
                        </div>
                        <%}%>